package com.example.meeting.service;

import com.example.meeting.model.domain.Person;
import com.example.meeting.model.domain.Subject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISubjectService {
    //查询议题
    Subject selectSubjectById(Long id);

    //动态查询议题列表
    PageInfo<Subject> selectSubjectList(Integer page, Integer pageSize, Subject subject);

    //新增议题
    Integer addSubject(Subject subject);

    //更新议题
    Integer updateSubject(Subject subject);

    //更新议题状态
    Integer updateSubjectStatus(Subject subject);

    //批量更新议题权重
    Integer updateSubjectWeightBatch(List<Subject> subjectList);

    //删除议题
    Integer deleteSubject(Long id);

    //删除议题人员中间表数据
    Integer deletePersonAndSub(Integer s_id, Integer p_id);

    //添加议题成员id记录
    Integer addSubjectPerson(Long subjectId, List<Person> personList);

}
